home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXT Education Software Sampler 1992 Fall
/
NeXT Education Software Sampler 1992 Fall.iso
/
Programming
/
Source
/
Looching2.0
/
Stopit.m
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-02-02
|
312 b
|
29 lines
/* Generated by Interface Builder */
#include <libc.h>
#include <strings.h>
extern int Pid;
#import "Stopit.h"
@implementation Stopit
- terminate:sender
{
if (Pid > 0) {
char s[10] = "kill ";
char num[10];
sprintf(num,"%d",Pid);
strcat(s,num);
system(s);
}
[super terminate:self];
}
@end